<template>
  <div class="setting">
    <div class="card">
      <div class="title">启动设置</div>
      <div class="content">
        <el-form-item label="状态">
          <el-radio-group v-model="settingData.status">
            <el-radio :label="false">关闭</el-radio>
            <el-radio :label="true">开启</el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item label="上传图片">
          <sa-uploader v-model="settingData.src" fileType="image"></sa-uploader>
        </el-form-item>
        <el-form-item label="跳过时间">
          <el-input v-model="settingData.countdown">
            <template #append>秒</template>
          </el-input>
        </el-form-item>
        <el-form-item label="链接">
          <dc-url v-model="settingData.url"></dc-url>
        </el-form-item>
      </div>
    </div>
  </div>
</template>

<script setup>
  import dcUrl from '../../common/dc-url.vue';

  const props = defineProps(['settingData']);
</script>
